;;; +ivy.el --- Initialization and mode setting.

;;; Homepage:
;; https://github.com/abo-abo/swiper#ivy

;;; Commentary:
;; Completion interface.

;;; Code:

(use-package ivy
  :ensure
  :bind
  (:map ivy-minibuffer-map
	("<home>" . ivy-beginning-of-buffer)
	("M-x" . minibuffer-keyboard-quit)
	("<backtab>" . ivy-previous-line)
	("<mouse-4>" . ivy-previous-line)
	("C-a" . ivy-beginning-of-buffer)
	("<mouse-5>" . ivy-next-line)
	("<end>" . ivy-end-of-buffer)
	("C-e" . ivy-end-of-buffer)
	("<tab>" . ivy-next-line)
	("TAB" . ivy-next-line))
  :init
  (setq ivy-sort-max-size most-positive-fixnum
	ivy-on-del-error-function 'ignore
	ivy-extra-directories nil
	ivy-ignore-buffers nil
	ivy-height 20
	ivy-wrap t)

  (ivy-mode t)
  :config
  (set-face-attribute 'ivy-current-match nil
		      :weight 'bold))

(provide '+ivy)

;;; +ivy.el ends here
